# toolchain.cmake
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR aarch64)

set(PATH_PREFIX /opt/toolchain/rk3588/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin)

# 指定交叉编译工具链路径
set(CMAKE_C_COMPILER ${PATH_PREFIX}/aarch64-none-linux-gnu-gcc)
set(CMAKE_CXX_COMPILER  ${PATH_PREFIX}/aarch64-none-linux-gnu-g++)
